Use new do_without_error function to squelch the error when closing down the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 9 Dec 2005 10:51:20 +0000 (10:51 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 9 Dec 2005 10:51:20 +0000 (10:51 +0000)
interface.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-nat

index 896f5961d1003a32cc1e425a653a6dd15299d190..9ce79f04346ef02343995bf1996f41e1ffb7d714 100644 (file)
@@ -155,7 +155,7 @@ case "$command" in
         ;;
     offline)
         [ "$dhcp" != 'no' ] && dhcp_down
-        ifconfig "$vif" down || true
+        do_without_error ifconfig "$vif" down
         ;;
 esac